﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using MedicalCare.EntityDefinitions.Entities;

namespace MedicalCare.EntityMappings.EntityMaps
{
    public class UserRoleMap : ClassMap<UserRoleEntity>
    {
        public UserRoleMap()
        {
            Table("User_Role");
            Id(x => x.Id).Column("Id").Not.Nullable();
            Map(x => x.Code).Column("Code");
            Map(x => x.Name).Column("Name");
        }
    }
}